Skip to content

[camera_android_camerax] Add the ability to unit test skills. - #12285

Merged
auto-submit[bot] merged 15 commits into
mainfrom
update-agent-evals
Jul 28, 2026
Merged

[camera_android_camerax] Add the ability to unit test skills. #12285
auto-submit[bot] merged 15 commits into
mainfrom
update-agent-evals

Conversation

@reidbaker-agent

@reidbaker-agent reidbaker-agent commented Jul 24, 2026

Copy link
Copy Markdown
Contributor

Add the concept of evals for skills to camera_android_camerax this is part of project-oneshot.
This is basically the equivalent of llm unit tests.
The idea and harness comes from dart_skills_lint see flutter/agent-plugins#189
The infra for running evals can and should be replaced by a tool that is designed for this use case when it is available.
In the meantime, the valuable parts are the evals.jsons files. They document the expectations for the skills under test in this repo. - @reidbaker


Agent authored description
Updates agent evals for check-readiness and run-evals, including fixing missing license blocks and enforcing relative paths.

Evaluation Results: cross_skill_rubric

Eval ID 1: Failure Scenario

  • Status: PASS 🟢
  • Scenario: Execute 'bash evals/test_data/simulate_failure.sh'.
  • Grading: Correctly detected and explicitly flagged all expected failures (Scope Limitation, Pigeon Generation, and Lint Cheating).

Eval ID 2: Success Scenario

  • Status: PASS 🟢
  • Scenario: Execute 'bash evals/test_data/simulate_success.sh'.
  • Grading: Correctly identified that all code quality criteria passed successfully without any false positive failures.

@reidbaker
reidbaker requested review from camsim99 and reidbaker and removed request for reidbaker July 24, 2026 20:30
@reidbaker reidbaker added the CICD Run CI/CD label Jul 24, 2026
Comment thread packages/camera/camera_android/README.md

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this is no longer used. remove

DisplayOrientedMeteringPointFactory(CameraInfo cameraInfo, double width, double height);
}

// dummy eval modification

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This file should not be checked in. This is leaked state from an eval.

@flutter-dashboard flutter-dashboard Bot removed the CICD Run CI/CD label Jul 24, 2026
@reidbaker
reidbaker force-pushed the update-agent-evals branch from 0d0aa4d to 68f87b7 Compare July 24, 2026 21:10
@reidbaker
reidbaker marked this pull request as ready for review July 24, 2026 21:19

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request adds the run-evals skill, including its evaluation configurations, templates, and scripts, and introduces a test suite in packages/camera/camera_android_camerax to verify the structural consistency of evaluation files. Feedback on these changes highlights issues with hardcoded repository paths in the skill documentation, a missing reference to code_quality_rubric.json in the evaluation configuration, and the use of Directory.current.path in tests, which may cause failures when executed from the repository root.

Comment thread packages/camera/camera_android_camerax/test/skills_evals_test.dart
Comment thread packages/camera/camera_android_camerax/test/skills_evals_test.dart
Comment thread third_party/skill-repos/agent-plugins/.agents/skills/run-evals/SKILL.md Outdated
Comment thread third_party/skill-repos/agent-plugins/.agents/skills/run-evals/evals/evals.json Outdated
@reidbaker
reidbaker force-pushed the update-agent-evals branch from 68f87b7 to c8f0176 Compare July 27, 2026 16:04
@reidbaker reidbaker added the CICD Run CI/CD label Jul 27, 2026

@camsim99 camsim99 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Just a question about dart_skills_lint references in the run-evals skill


# Run Skill Evals

1. **Read Framework**: Read `tool/dart_skills_lint/evals/README.md` for understanding the difference between per-skill evals and cross-skill evals.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What if tools/dart_skills_lint is not in the context? Should the references to it be links instead?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

flutter/agent-plugins#196. Will update this pr when 196 lands.

@flutter-dashboard flutter-dashboard Bot removed the CICD Run CI/CD label Jul 27, 2026
@reidbaker reidbaker added the CICD Run CI/CD label Jul 27, 2026
@flutter-dashboard flutter-dashboard Bot removed the CICD Run CI/CD label Jul 27, 2026
@reidbaker reidbaker added the CICD Run CI/CD label Jul 27, 2026
@reidbaker reidbaker changed the title [camera_android_camerax] Update agent evals [camera_android_camerax] Add the ability to unit test skills. Jul 27, 2026
@flutter-dashboard flutter-dashboard Bot removed the CICD Run CI/CD label Jul 28, 2026
@reidbaker reidbaker added the CICD Run CI/CD label Jul 28, 2026
@reidbaker reidbaker added the autosubmit Merge PR when tree becomes green via auto submit App label Jul 28, 2026
@auto-submit auto-submit Bot removed the autosubmit Merge PR when tree becomes green via auto submit App label Jul 28, 2026
@auto-submit

auto-submit Bot commented Jul 28, 2026

Copy link
Copy Markdown
Contributor

autosubmit label was removed for flutter/packages/12285, because - The status or check suite Dashboard Checks has failed. Please fix the issues identified (or deflake) before re-applying this label.

@reidbaker reidbaker added override: no versioning needed Override the check requiring version bumps for most changes override: no changelog needed Override the check requiring CHANGELOG updates for most changes labels Jul 28, 2026
@reidbaker

Copy link
Copy Markdown
Contributor

Override justification: These changes are not user facing but contributor facing. PR #12299 addresses exampting evals from version and changelog checking.

@reidbaker reidbaker added the autosubmit Merge PR when tree becomes green via auto submit App label Jul 28, 2026
@auto-submit auto-submit Bot removed the autosubmit Merge PR when tree becomes green via auto submit App label Jul 28, 2026
@auto-submit

auto-submit Bot commented Jul 28, 2026

Copy link
Copy Markdown
Contributor

autosubmit label was removed for flutter/packages/12285, because - The status or check suite Dashboard Checks has failed. Please fix the issues identified (or deflake) before re-applying this label.

@reidbaker reidbaker added the autosubmit Merge PR when tree becomes green via auto submit App label Jul 28, 2026
@auto-submit
auto-submit Bot merged commit 3e63635 into main Jul 28, 2026
14 checks passed
@auto-submit
auto-submit Bot deleted the update-agent-evals branch July 28, 2026 14:43
vashworth pushed a commit to vashworth/flutter that referenced this pull request Jul 28, 2026
…r#190142)

flutter/packages@6969329...3e63635

2026-07-28 269567208+reidbaker-agent@users.noreply.github.com
[camera_android_camerax] Add the ability to unit test skills.
(flutter/packages#12285)
2026-07-28 stuartmorgan@google.com [ci] Tag dependabot PRs with
`triage-android` (flutter/packages#12142)
2026-07-26 engine-flutter-autoroll@skia.org Roll Flutter from
e292197 to 9988960 (1 revision) (flutter/packages#12288)
2026-07-25 engine-flutter-autoroll@skia.org Roll Flutter from
b65f4d9 to e292197 (19 revisions) (flutter/packages#12287)
2026-07-24 engine-flutter-autoroll@skia.org Roll Flutter from
2a2a79d to b65f4d9 (30 revisions) (flutter/packages#12284)
2026-07-24 engine-flutter-autoroll@skia.org Roll Flutter (stable) from
84fc5cb to 058e0af (6 revisions) (flutter/packages#12282)

If this roll has caused a breakage, revert this CL and stop the roller
using the controls here:
https://autoroll.skia.org/r/flutter-packages-flutter-autoroll
Please CC flutter-ecosystem@google.com on the revert to ensure that a
human
is aware of the problem.

To file a bug in Flutter:
https://github.com/flutter/flutter/issues/new/choose

To report a problem with the AutoRoller itself, please file a bug:
https://issues.skia.org/issues/new?component=1389291&template=1850622

Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md
auto-submit Bot pushed a commit that referenced this pull request Jul 28, 2026
This pr is blocked by #12298. 

This came up in #12297. I decided landing the tool focused pr was much easier to review than stacking this work on #12285 - @reidbaker 

---
Agent authored pr description
This PR exempts .agents and evals directories from triggering missing changelog and version update errors.

TAG=agy
CONV=24c0c9b5-7e8d-407c-ae84-a577061bd6ff
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

autosubmit Merge PR when tree becomes green via auto submit App CICD Run CI/CD override: no changelog needed Override the check requiring CHANGELOG updates for most changes override: no versioning needed Override the check requiring version bumps for most changes p: camera

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants